<?php

App::uses('Controller', 'AppController');

class AdminController extends AppController {

    public $layout = "admin";
    public $components = array(
        'Session',
        'Auth' => array(
            'authenticate' => array(
                'Form' => array(
                    'fields' => array('username' => 'username', 'password' => 'password'),
                    'userModel' => 'Admin'
                )
            ),
            'loginAction' => array(
                'controller' => 'Au',
                'action' => 'index'
            ),
            'loginRedirect' => array(
                'controller' => 'Product',
                'action' => 'index'
            ),
            'logoutRedirect' => array(
                'controller' => 'Au',
                'action' => 'index'
            ),
        )
    );
    public $helpers = array(
        'Html' => array('className' => 'BoostCake.BoostCakeHtml'),
        'Form' => array('className' => 'BoostCake.BoostCakeForm'),
        'Paginator' => array('className' => 'BoostCake.BoostCakePaginator'),
        'Custom'
    );

}
